package db;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * AbstractTransaction entity provides the base persistence definition of the
 * Transaction entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractTransaction implements java.io.Serializable {

	// Fields

	private Integer trId;
	private ServiceContract serviceContract;
	private Integer trType;
	private Integer trStatus;
	private Date trDate;
	private String trDescription;
	private Set bids = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractTransaction() {
	}

	/** minimal constructor */
	public AbstractTransaction(ServiceContract serviceContract, Integer trType,
			Integer trStatus, Date trDate) {
		this.serviceContract = serviceContract;
		this.trType = trType;
		this.trStatus = trStatus;
		this.trDate = trDate;
	}

	/** full constructor */
	public AbstractTransaction(ServiceContract serviceContract, Integer trType,
			Integer trStatus, Date trDate, String trDescription, Set bids) {
		this.serviceContract = serviceContract;
		this.trType = trType;
		this.trStatus = trStatus;
		this.trDate = trDate;
		this.trDescription = trDescription;
		this.bids = bids;
	}

	// Property accessors

	public Integer getTrId() {
		return this.trId;
	}

	public void setTrId(Integer trId) {
		this.trId = trId;
	}

	public ServiceContract getServiceContract() {
		return this.serviceContract;
	}

	public void setServiceContract(ServiceContract serviceContract) {
		this.serviceContract = serviceContract;
	}

	public Integer getTrType() {
		return this.trType;
	}

	public void setTrType(Integer trType) {
		this.trType = trType;
	}

	public Integer getTrStatus() {
		return this.trStatus;
	}

	public void setTrStatus(Integer trStatus) {
		this.trStatus = trStatus;
	}

	public Date getTrDate() {
		return this.trDate;
	}

	public void setTrDate(Date trDate) {
		this.trDate = trDate;
	}

	public String getTrDescription() {
		return this.trDescription;
	}

	public void setTrDescription(String trDescription) {
		this.trDescription = trDescription;
	}

	public Set getBids() {
		return this.bids;
	}

	public void setBids(Set bids) {
		this.bids = bids;
	}

}